import {createRouter,createWebHashHistory} from 'vue-router'
import Home from '../views/Home.vue'
import Newlist from '../views/Newlist.vue'
import Addlist from '../views/Addlist.vue'
const routes=[
    {
        path:'/',
        redirect:'/home'
    },
    {
        path:'/home',
        component:Home
    },
    {
        path:'/newlist',
        component:Newlist
    },
    {
        path:'/addlist',
        component:Addlist
    }
]

const router=createRouter({
    history: createWebHashHistory(),
    routes, 
})

export default router